Repository navigation
docs: plan regional forms — one kanji across Japan, China, Hong Kong and Taiwan (spec 22) - #46
Merged
Merged
Conversation
…g Kong, Taiwan and Korea (spec 22) A study of hanji (code MIT, data CC BY 4.0), its live site and its source, and a phased plan for folding most of it into the kanji pages: a stacked comparison of each region's form, a chart of code points, stroke counts and list status adapted to the sidebar's width, stroke order by region, lookup from any regional form, and a browse with hanji's filters. The plan records what was measured (5.37 MB of region sans fonts; AnimCJK covering 8,014 characters for Simplified Chinese but 1,013 for Traditional and 535 for Korean), which Unihan fields can replace the unlicensed list transcription hanji uses (four of five lists), what the licence excludes (the name and logo), and the decisions needed from the user before phase 1. Backlog #56.
…ktionary (spec 22) The user's answers on 2026-11-10: port and adapt hanji's method with its code as a reference; take Taiwan's list status from Taiwan's own sources; leave Korea out for now; bundle the fonts; leave lookup from a regional form until later; and include readings in other languages and per-region frequency. Wiktionary is added as a source on the user's suggestion: its character pages label each variant form and note where a shape came from, in English and under CC BY-SA 4.0, like our JMdict data. kaikki.org's per-language extracts are being removed, so an on-demand job extracts the character entries from the full dump into a pinned release asset. For Taiwan, the Ministry of Education's 4,808-character list is published with "All Rights Reserved" and no open licence, while CNS 11643 is open data (OGDL 1.0) but may not flag the list. Phase 0 inspects it and brings the options back to the user.
Six spikes, run against hanji's published data and the sources pinned at its commits: - The ported CMap reading reproduces hanji's glyph signatures for all 8,449 groups; without Korea, 8 groups differ, each one Korea had linked. - Taiwan's list comes from CNS 11643 open data (OGDL 1.0): its source table tags the Ministry of Education's common list with exactly 4,808 characters. - Taiwan's official stroke counts differ from hanji's for 1,263 of 8,446 Taiwan forms, by regional convention (the grass, altar and movement radicals), so Taiwan's counts come from CNS 11643 first. - Region fonts for our scope: 4.40 MB, under target. - China's and Taiwan's stroke drawings: 5,508 at most, 15.5 MB raw, available as SVGs in our player's format. - Wiktionary: one pass of the full dump takes 141 seconds and yields 18.8 MB of English notes, meanings, labelled variants and readings; a first quick filter lost entries to nested keys, which the plan now warns about.
Taiwan's less-common list was short by about 580 characters: CNS 11643 credits each character to the first document that attests it, so those are credited to the textbook list. The list is now the less-common source plus the textbook source, 6,355 against the official 6,341. CNS 11643 rebuilds its archives in place, without always changing their version, so the build takes the latest, records its date, and fails if the common list is not 4,808. A checksum pin would have failed every few weeks. The schema section shows what was built: only the columns phase 1 fills. Later phases add theirs. Phase 1's results: five rules hanji does not need (Hong Kong's index as the entry; dropping a group no list names that repeats another; joining two orthodox forms only when two tables agree; Japan's old form from Japan's own pair; the 4,808 check), the comparison with hanji with a reason for each class of difference, and the known limits.
This was referenced Nov 11, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

A plan for regional forms. The decisions were made, and phase 0 (spikes) done, on 2026-11-10. Nothing is built yet.
Read: docs/specs/22-regional-forms.md. Backlog #56 points at it.
Decisions:
Phase 0 findings:
Phases:
Later: lookup from any regional form, and Korea.
No code or data changes.